<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>历史流程管理</title>
  <link href="${pageContext.request.contextPath }/css/style.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.7.2.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/main.js"></script>
</head>

<body>
  <div id="main">
  <div id="title">
  <table>
    <tr>
      <td class="td01">&nbsp;</td>
      <td class="td01"><img src="${pageContext.request.contextPath }/images/main_28.gif"></td>
      <td class="td02">历史流程管理</td>
    </tr>
  </table>
  </div>
  
  <form id="queryForm" action="${pageContext.request.contextPath}/process/history!findPage.action" method="post">
  <div id="query">
    <table class="table01">
      <tr>
        <td class="td_02" colspan="2" ><SPAN class=td_title>历史流程查询</SPAN></td>
	  </tr>
      <tr>
		<td width="5%" class="td_02">流程列表</td>
		<td class="td_02" width="40%">
			<s:select name="definitionKey" list="@com.soft.core.utils.ProcessEnum@values()" listValue="value" headerKey="" headerValue="全部" cssClass="select"></s:select>
		</td>
		</tr>
	  
    </table>
  </div>
  </form>
  
  <form action="${pageContext.request.contextPath }/process/history!delete.action" method="post">
  <div id="execute">
    <input type="submit" class="buttonface02" value="删除历史流程">
    <input type="button" id="queryButton" class="buttonface02" value="查询历史流程">
  </div>
  
  <div id="page">	            
    <%@include file="/page.jsp"%>
  </div>   
  <div id="data">    
	<table class="table01">
	  <tr>
      	<td class="td_top" width="1%"><input type="checkbox" id="chk" value="checkbox0"></td>
        <td class="td_top">Id</td>
        <td class="td_top">businessKey</td>
        <td class="td_top">processDefinitionId</td>
        <td class="td_top">StartTime</td>
        <td class="td_top">EndTime</td>
        <td class="td_top">DurationInMillis</td>
        <td class="td_top">EndActivityId</td>
        <td class="td_top">StartActivityId</td>
	  </tr>
	  <s:iterator value="#page.result">
	  <tr>
        <td class="td_02"><input type="checkbox" name="ids" value="${id }"></td>
        <td class="td_02">${id }</td>
        <td class="td_02">${businessKey }</td>
        <td class="td_02">${processDefinitionId }</td>
        <td class="td_02">
        	<s:date name="startTime" var="formatStartTime" format="yyyy-MM-dd HH:mm:ss"/>
        	<s:property value="formatStartTime"/>
        </td>
        <td class="td_02">
        	<s:date name="endTime" var="formatEndTime" format="yyyy-MM-dd HH:mm:ss"/>
        	<s:property value="formatEndTime"/>
        </td>
        <td class="td_02">${durationInMillis }</td>
        <td class="td_02">${endActivityId }</td>
        <td class="td_02">${startActivityId }</td>
	  </tr>
	  </s:iterator>
	  </table>
	</div>          
  </form>
  </div>          
</body>
</html>
